
import Server.clientInt;
import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;
import javax.swing.JFrame;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author labib
 */
public class ClientImp extends UnicastRemoteObject  implements clientInt{

    ClientFrame me;
    public ClientImp(ClientFrame inframe) throws RemoteException
    {
        me = inframe;
    }
    public void reciev(final String message) throws RemoteException {
    
    System.out.println(""+message);
    
   String con= ClientFrame.jTextArea1.getText();
   ClientFrame.jTextArea1.setText(con+"\n"+message);
    
    Thread th=new Thread(new Runnable(){
        		public  void run()
        		{
        			try{
        		
        			 // me.App(message);
        		
                
	
        			}
        			catch(Exception vv)
        			{
        				
        			}
        	
        		}
        	});
        	th.start();
    
    
    
    
    
      
        
        
    }



    public void receiveFile(Object obj) throws RemoteException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void join() throws RemoteException {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    

}
